<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="box" style="font-size: 60px;">这是一个网页</div>
    <button id="btn" onclick="setColor()" style="font-size: 48px;">点击</button>
    <script>
        function setHtml(str) {
            let list = "";
            str.forEach((item) => {
                list += item.title + "<br>"
            });

            document.getElementById("box").innerHTML = list;

        }

    </script>
</body>

</html>